package com.university.sol.dao;

import com.university.sol.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Long userNum);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long userNum);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getUserByEmailAndPassword(@Param("userEmail") String userEmail, @Param("userPassword") String userPassword);

    int getCountByEmail(String userEmail);
}